import random
import string
from random import randint
f = open('in.txt', 'w')
# n = randint(1, 14)

n = 1
print(1, file=f)


def toS(n):
    s = ''
    while(n):
        if n & 1:
            s += '1'
        else:
            s += '0'
        n //= 2
    return s


print(2**8-1, file=f)
for i in range(1,2**8):
    s = toS(randint(1, 2**8))
    print(len(s), s, file=f)
